package fenixnax.hello.hangman;

import android.content.Context;

public class HangmanThread extends Thread{
	
	private Context context;
	private HangmanView view;

    public HangmanThread(HangmanView view, Context context) {
        this.view = view;
        this.context = context;
    }
    
    public void updateGame() {
    	
    }
    
    public void run() {
    	
    	System.out.println("##Thread STARTING");
    	
    	while(true) { //NOT TRUE
    		
    		System.out.println("##Thread PAINTING CANVAS");
    		view.drawCanvas();
    		
    		try{
    			Thread.sleep(100);
    		}catch(Exception e){}
    	}
    	
    }

}
